
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class GetOutputsDemo {
    public static void main(String[] args) throws IOException {
        
        InputStreamReader in2 = new InputStreamReader(System.in);
        BufferedReader in3 = new BufferedReader(in2);
        
        
        String[] items = {"吃","喝","嫖","赌","其他"};
        
        float[] outputs = new float[5];
        
        float sum = 0;
        
        for (int i = 0; i < 5; i++){
            System.out.println("请输入--"+items[i]+"--这项开支的数量：");
            outputs[i] = Float.parseFloat(in3.readLine());
            sum += outputs[i];
            System.out.println();    
        }
        System.out.println("当天肥仔各项的开支如下：");
        for (int i =0;i<5;i++){
            System.out.println(items[i]+":"+outputs[i]);
        }
        System.out.println("当天肥仔的各项开支总和"+sum);
        
    }

}
